const express = require('express'),
      router = express.Router();

const cnode  = require('./controllers/cnode'),
      upload = require('./controllers/upload');

const review = require('./controllers/review');

const sync = require('./controllers/sync');

//node中文社区首页
router.get(['/cnode','/cnode/site','/cnode/site/*'], cnode.home);

//图片上传
// router.get('/upload',upload.index);
// router.put('/upload',upload.upload);
// router.post('/upload',upload.upload);

//自动同步
router.get('/sync',sync.home);
router.post('/sync/cnode',sync.cnodeSync);

//外包项目预览专用
router.get('/html/review',review.index);



module.exports = router;


